package com.buba.livenuniappservernew.api.ImageFile.service.impl;

import com.buba.livenuniappservernew.api.ImageFile.entity.ImageFile;
import com.buba.livenuniappservernew.api.ImageFile.mapper.ImageFileMapper;
import com.buba.livenuniappservernew.api.ImageFile.service.IImageFileService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 马鼎
 * @since 2024-09-11
 */
@Service
public class ImageFileServiceImpl extends ServiceImpl<ImageFileMapper, ImageFile> implements IImageFileService {
    @Autowired
    ImageFileMapper imageFileMapper;
    @Override
    public Boolean insImageFile(ImageFile imageFile) {
        int i = imageFileMapper.insert(imageFile);
        if (i != 0){
            return true;
        }
        return false;
    }
}
